﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace ProjetGenGui
{
    static class fichierTxt
    {
        public static String RecupererContenuDuFichier(String FileName)
        {
            StreamReader reader;
            String contenuFichier = "";
            try
            {
                reader = new StreamReader(FileName);
                contenuFichier = reader.ReadToEnd();
                reader.Close();
                return contenuFichier;
            }
            catch (Exception ex)
            {
                return null;
            }
        }
    }
}
